<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'  %>
<!DOCTYPE html >
<html>
<head>
<title>Job Hunter - modification de processus</title>
</head>
<body>

	<div id="breadcrumb">
		<a href="/main" >accueil</a> >
		<a href="/processesList" >processus</a>
		 > modification
	</div>
	<form action="updProcessValidate" method="post">
		<h1>Process Form</h1>
		<input type="hidden" name="id" value="${process.id }" />
		<c:choose>
			<c:when test="${company != null}">
				<h2>For Company : ${company.name }</h2>
				<input type="hidden" name="companyId" value="${company.id }" />
				<input type="hidden" name="page" value="company" />
			</c:when>
			<c:otherwise>
				<div>
					<label>Company : </label> <select name="companyId">
						<c:forEach items="${companies}" var="company">
							<option value="${company.id}">${company.name}</option>
						</c:forEach>
					</select>
				</div>
			</c:otherwise>
		</c:choose>

		<div>
			<label> Name : </label><input type="text" name="name"
				value="${process.name }" />
		</div>
		<div>
			<label>Description : </label><input type="text" name="description"
				value="${process.description }" />
		</div>

		<div>
			<input type="submit" />
		</div>
	</form>


</body>
</html>